<template>
  <div class="pages">
      <el-pagination background
      @size-change="onPageSizeChange"
      @current-change="onPageChange"
      :current-page="Number(paginationPage)"
      :total="Number(total)"
      :page-size="Number(paginationPagesize)"
      :page-sizes="[10,20,30, 50]"
      layout="total, sizes, prev, pager, next,jumper"
      >
      </el-pagination>
  </div>
</template>
<script>
export default {
  name: 'PageTool',
  props: ['total', 'paginationPage', 'paginationPagesize'],
  data () {
    return {
    }
  },
  methods: {
    // 进入某一页
    onPageChange: function (pageNum) {
      this.$emit('pageChange', pageNum)
    },
    // 每页显示信息条数
    onPageSizeChange: function (pageSize) {
      this.$emit('pageSizeChange', pageSize)
    }
    // prevclick () { this.$emit('prevclick') },
    // nextclick () { this.$emit('nextclick') }
  }
}
</script>
<style>
  .el-input__inner:hover{
    border: 1px solid orange !important;
}
  .el-input__inner:focus{
    border: 1px solid orange !important;
}
  .el-select-dropdown__item.selected{
    color:black;
    font-weight: normal;
  }
  .el-select-dropdown__item.hover{
    background-color: rgba(241, 201, 127, 0.3);
  }
  .number.active{
    color: orange !important;
    background-color: unset !important;
  }
  .btn-prev,.btn-next{
     background-color: unset !important;
  }
/* .el-input__inner:hover{
  border: 1px solid orange;
} */
</style>
